Skip to content

Simple hangman challenge #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged

Simple hangman challenge #6

merged 1 commit into from
Apr 28, 2025

Conversation

jlahtinen
Copy link

This pull request introduces a comprehensive setup and implementation for a Hangperson (Hangman) Java console application. It includes detailed instructions for creating the project, configuring Maven, and leveraging GitHub Copilot for incremental development. The changes also include a complete solution with the game logic, tests, and supporting documentation.

Documentation and Setup Improvements:

  • Added a detailed README.md file in challenges/hangperson with step-by-step instructions for setting up the Hangperson application using Maven and GitHub Copilot. It covers project creation, dependency configuration, and initial implementation guidance.
  • Included a wordet.md file documenting the use of WordNet for word resources, along with its licensing details.

Game Implementation:

  • Implemented the main game logic in App.java, including a loop for guessing letters, tracking incorrect guesses, and determining win conditions. The game now supports repeated guesses until the word is fully guessed.

Testing and Maven Configuration:

  • Added a basic JUnit 5 test class AppTest.java to validate the application setup.
  • Created a pom.xml file to configure Maven for Java 1.8, JUnit 5, and the Maven Surefire plugin for testing.

Supporting Changes:

  • Updated .gitignore to exclude the target directory, ensuring build artifacts are not tracked.
  • Added prompts in prompts.md to guide developers in using GitHub Copilot for incremental game development.

This pull request provides a solid foundation for the Hangperson application, with clear documentation and modular implementation to support further enhancements.

@jlahtinen jlahtinen merged commit 2e9083f into main Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant